/*
    单板具体的led操作   实现  led_opr.h 接口
*/



#include <linux/module.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/ioport.h>
#include <linux/fcntl.h>
#include <linux/init.h>
#include <linux/poll.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/sysctl.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/ratelimit.h>

#include <asm/current.h>
#include "led_opr.h"

static  int led_init (int which)  //初始化LED， which 表示那个LED
{
    printk("%s %s lin: %d led :%d",__FILE__,__FUNCTION__,__LINE__,which);
    return 0;
}
static  int led_ctl  (int  which, char status)//控制LED   which 那个LED   status 1  亮  0 灭
{
        printk("%s %s lin: %d led :%d status %s",__FILE__,__FUNCTION__,__LINE__,which,status ? "on":"off");
        return 0;
}
static struct led_operations led_board_RK3399_opr = 
{
    .init = led_init,
    .ctl = led_ctl,
};



struct led_operations *get_board_led_oper()
{
    return  &led_board_RK3399_opr;
}

